#include"TcpServer.hpp"
#include"Command.hpp"
#include<memory>
int main()
{
    Command cmdservice;
    command_service_t func = std::bind(&Command::HanderCommand,
                                       &cmdservice, std::placeholders::_1, std::placeholders::_2);
    std::unique_ptr<TcpServer> server = std::make_unique<TcpServer>(func);
    server->InitServer();
    server->Loop();
    return 0;
}